import request from '@/utils/request'

// 能耗预算

// 列表 错误码300081
export function list(params) {
    return request({
        url: '/energy/budget-manage/list',
        method: 'get',
        params
    })
}

// 电费预算 错误码300082
export function budget(data) {
    return request({
        url: '/energy/budget-manage/budget',
        method: 'post',
        data
    })
}

// //  错误码300083
// export function declared(data) {
//     return request({
//         url: '/energy/budget-manage/declared',
//         method: 'put',
//         data
//     })
// }

// 申报审批 错误码300084
export function audit(data) {
    return request({
        url: '/energy/budget-manage/audit',
        method: 'put',
        data
    })
}


// 详情 错误码300085
export function detail(id) {
    return request({
        url: `/energy/budget-manage/detail/${id}`,
        method: 'get',
    })
}
